#! /usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright (c) Huoty, All rights reserved
# Author: Huoty <sudohuoty@163.com>
# CreateTime: 2020-06-09 10:03:06


def reverse_number(num):
    """数字翻转"""
    r = 0
    base = 10
    while 1:
        r = base * r + num % base
        num //= base
        if num == 0:
            break
    return r


def find_interesting_numbers():
    for num in range(10, 50):
        num2 = num * 2
        rnum2 = reverse_number(num2)
        if rnum2 < 10:
            continue
        rnum = reverse_number(num)
        if num * rnum2 != num2 * rnum:
            continue
        print("{} * {} = {} * {}".format(num, rnum2, num2, rnum))


find_interesting_numbers()
